package com.zelin.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * ------------------------------
 * 功能：http://localhost:8001/hello/list.do
 * 作者：WF
 * 微信：hbxfwf13590332912
 * 创建时间：2021/10/15-14:48
 * ------------------------------
 */
@Controller
@RequestMapping("/hello")
public class HelloController {

    @RequestMapping("/list")
    public ModelAndView list(){
        // 真实的物理视图：/WEB-INF/jsp/hello.jsp
        return new ModelAndView("hello","str","hello,大家好，欢迎学习SpringMVC！");
    }
}
